<?php


namespace app\api\validate;

class OrderValidate extends BaseValidate
{
    protected $rule = [
        'type' => 'require|in:1,2',
        'address_id' => 'require|isPositiveInteger',
        'appointment_time' => 'dateFormat:Y-m-d H:i:s'
    ];

    protected $message = [
        'type.require' => '非法请求',
        'type.in' => '非法请求',
        'address_id.require' => '请输入收货人',
        'address_id.isPositiveInteger' => '请输入联系电话',
        'appointment_time.dateFormat' => '请选择预约时间',
    ];
}